import request from '@/utils/request'

// 查询立档单位信息列表
export function listTENANT(query) {
  return request({
    url: '/manage/tenant/list',
    method: 'get',
    params: query
  })
}

// 查询立档单位信息详细
export function getTENANT(ID) {
  return request({
    url: '/manage/tenant/' + ID,
    method: 'get'
  })
}

// 新增立档单位信息
export function addTENANT(data) {
  return request({
    url: '/manage/tenant',
    method: 'post',
    data: data
  })
}

// 修改立档单位信息
export function updateTENANT(data) {
  return request({
    url: '/manage/tenant',
    method: 'put',
    data: data
  })
}

// 删除立档单位信息
export function delTENANT(ID) {
  return request({
    url: '/manage/tenant/' + ID,
    method: 'delete'
  })
}
// 立档单位状态修改
export function changeTENANTStatus(id, state) {
  const data = {
    id,
    state
  }
  return request({
    url: '/manage/tenant/changeStatus',
    method: 'put',
    data: data
  })
}






